<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let season = prompt("请输入春,夏,秋,冬其中一个");
      switch (season) {
        case "春":
          alert("spring");
          break;
        case "夏":
          alert("summer");
          break;
        case "秋":
          alert("autumn");
          break;
        case "冬":
          alert("winter");
          break;
        default:
          alert("未查询到");
      }
    </script>
  </body>
</html>
